﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestPaperUserList.aspx.cs"
    Inherits="sysadmin_PaperManager_TestPaperUserList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript" language="javascript">
        function ShowNo()                        //隐藏两个层
        {
            document.getElementById("doing").style.display="none";
            document.getElementById("divLogin").style.display="none";
        }
        function $(id)         
        {
            return (document.getElementById) ? document.getElementById(id) : document.all[id] ;
        }
        function showFloat()                    //根据屏幕的大小显示两个层
        {
            var range = getRange();
            $('doing').style.width = range.width + "px";
            $('doing').style.height = range.height + "px";
            $('doing').style.display = "block";
            document.getElementById("divLogin").style.display="";
        }
        function getRange()                      //得到屏幕的大小
        {
              var top     = document.body.scrollTop;
              var left    = document.body.scrollLeft;
              var height  = document.body.clientHeight;
              var width   = document.body.clientWidth;

              if (top==0 && left==0 && height==0 && width==0) 
              {
                top     = document.documentElement.scrollTop;
                left    = document.documentElement.scrollLeft;
                height  = document.documentElement.clientHeight;
                width   = document.documentElement.clientWidth;
              }
              return  {top:top  ,left:left ,height:height ,width:width } ;
        } 

    </script>

</head>
<body class="bodymain">
    <form id="form1" runat="server">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="titbg_right">
            <tr>
                <td class="titbg_left">
                    <asp:Label ID="lbl_InfoTitle" runat="server" Text="测试卷批阅"></asp:Label></td>
            </tr>
        </table>
        <br />
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="btnbg">
            <tr>
                <td>
                    <asp:TextBox ID="txt_SearchKey" runat="server"></asp:TextBox>
                    <asp:Button ID="btn_SortSearch" runat="server" Text="搜索" CssClass="inputBotton2"
                        OnClick="btn_SortSearch_Click" />&nbsp; <a href="javascript:void(0)" onclick="showFloat()">
                            <%=GetLanageValueByKey("btn_ManagerQuestion_highSearch", PowerCreator.LMS.Language.LanagetItemType.Page) %></a>&nbsp;
                </td>
            </tr>
        </table>
        <asp:GridView ID="gvPaperUserList" runat="server" AutoGenerateColumns="False" OnRowCommand="gvPaperUserList_RowCommand"
            OnRowDataBound="gvPaperUserList_RowDataBound" GridLines="None" BorderWidth="0"
            CssClass="mainList">
            <Columns>
                <asp:BoundField DataField="UserName" HeaderText="用户名称" />
                <asp:BoundField DataField="PaperName" HeaderText="试卷名称" />
                <asp:BoundField HeaderText="提交时间" DataField="UPHistorySubmitTime" />
                <asp:BoundField HeaderText="试卷状态" DataField="UPHistoryReadState" />
                <asp:BoundField HeaderText="得分" DataField="UPHistoryScore" />
                <asp:BoundField DataField="UPHistoryReadTime" HeaderText="阅卷时间" />
                <asp:BoundField DataField="RealName" HeaderText="真实姓名" />
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="btn_readpaper" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "url") %>'
                            CommandName="readpaper">立即阅卷</asp:LinkButton>
                        <asp:LinkButton ID="btn_Edit" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "url") %>'
                            CommandName="btn_Edit">修改试卷</asp:LinkButton>
                        <asp:LinkButton ID="btn_studyhis" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "url") %>'
                            CommandName="studyhis" Visible="True">查看学习历史</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <%=GetLanageValueByKey("NoContent_msg", PowerCreator.LMS.Language.LanagetItemType.Page)%>
            </EmptyDataTemplate>
        </asp:GridView>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td align="center">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Center" OnPageChanged="AspNetPager1_PageChanged"
                        ShowCustomInfoSection="Left" Width="100%" meta:resourceKey="AspNetPager1" Style="font-size: 14px"
                        InputBoxStyle="width:19px" CustomInfoHTML="当前页  <font color='red'><b>%CurrentPageIndex%</b></font> 总页数  %PageCount%  当前条数 %StartRecordIndex%-%EndRecordIndex%"
                        FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
        <div id="doing" style="filter: alpha(opacity=30); -moz-opacity: 0.3; opacity: 0.3;
            background-color: #000; width: 100%; height: 100%; z-index: 1000; position: absolute;
            left: 0; top: 0; display: none; overflow: hidden;">
        </div>
        <div id="divLogin" style="border: solid 10px #898989; background: #fff; padding: 10px;
            width: 780px; z-index: 1001; position: absolute; display: none; top: 50%; left: 50%;
            margin: -200px 0 0 -400px;">
            <div style="padding: 3px 15px 3px 15px; text-align: left; vertical-align: middle;">
                <table border="0" cellpadding="0" cellspacing="0" class="tableList2" width="100%">
                    <tr>
                        <th>
                            <asp:Label ID="lab_UserClass" runat="server" Text="所属班级"></asp:Label>
                        </th>
                        <td style="width: 130px">
                            <asp:DropDownList ID="dpdlst_ClassInfo" runat="server">
                            </asp:DropDownList></td>
                        <th>
                            <asp:Label ID="lab_ReadState" runat="server" Text="批阅状态"></asp:Label></th>
                        <td style="width: 130px">
                            <asp:DropDownList ID="dpdlst_ReadState" runat="server" Width="120px">
                                <asp:ListItem Selected="True" Value="-1">全部</asp:ListItem>
                                <asp:ListItem Value="0">未批阅</asp:ListItem>
                                <asp:ListItem Value="1">已批阅</asp:ListItem>
                            </asp:DropDownList></td>
                            <th><asp:Label ID="lab_PaperName" runat="server" Text=""></asp:Label></th>
                            <td>
                            <asp:TextBox ID="txt_PaperName" runat="server"></asp:TextBox>
                            </td>
                    </tr>
                    <tr>
                        <th>
                            <asp:Label ID="lab_UserName" runat="server" Text="用户名称"></asp:Label></th>
                        <td>
                            &nbsp;<asp:TextBox ID="txtUserName" runat="server"></asp:TextBox></td>
                        <th>
                            <asp:Label ID="lab_RealName" runat="server" Text="真实姓名"></asp:Label></th>
                        <td  colspan=3>
                            <asp:TextBox ID="txt_RealName" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td colspan=6 class="tree-bottom-bg">
                            <asp:Button ID="btnSearch" runat="server" CssClass="inputBotton2" OnClick="btnSearch_Click"
                                Text=" 搜 索 " />
                            <input id="btn_colse" class="inputBotton2" onclick="ShowNo();" type="button" value='<%=GetLanageValueByKey("btn_ManagerQuestion_Close", PowerCreator.LMS.Language.LanagetItemType.Page) %>' /></td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</body>
</html>
